package com.day.service.impl;

import com.day.mapper.SchoolMapper;
import com.day.pojo.School;
import com.day.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolServiceImpl implements SchoolService {


    @Autowired
    private SchoolMapper schoolMapper;
    @Override
    public List<School> getSchoolList() {
        return schoolMapper.getSchoolList();
    }

    @Override
    public School getSchoolById(Integer s_id) {
        return schoolMapper.getSchoolById(s_id);
    }

    @Override
    public void addSchool(School school) {

        schoolMapper.addSchool(school);
    }

    @Override
    public void delSchoolById(Integer s_id) {

        schoolMapper.delSchoolById(s_id);
    }

    @Override
    public void editSchoolById(School school) {

        schoolMapper.editSchoolById(school);
    }
}
